package cn.yx.framework.configuration;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class AutoReportConfig {

    @Bean
    public AutoReportServer autoReportServer() {
        return new AutoReportServer();
    }

    @ConfigurationProperties(prefix = "autoreport.config")
    public static class AutoReportServer {
        private String key;
        private String secret;
        private String ownerorgid;
        private String url;
        private String isproxy;
        private String proxyurl;
        private String proxyport;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getSecret() {
            return secret;
        }

        public void setSecret(String secret) {
            this.secret = secret;
        }

        public String getOwnerorgid() {
            return ownerorgid;
        }

        public void setOwnerorgid(String ownerorgid) {
            this.ownerorgid = ownerorgid;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getIsproxy() {
            return isproxy;
        }

        public void setIsproxy(String isproxy) {
            this.isproxy = isproxy;
        }

        public String getProxyurl() {
            return proxyurl;
        }

        public void setProxyurl(String proxyurl) {
            this.proxyurl = proxyurl;
        }

        public String getProxyport() {
            return proxyport;
        }

        public void setProxyport(String proxyport) {
            this.proxyport = proxyport;
        }
    }
}

